/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.model.generators;

import pl.edu.amu.wmi.kino.visualjavafx.model.objects.Point;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.path.CurveToPathElement;

/**
 *
 * @author Admin
 */
public class ModelCurveToGenerator {
    public static CurveToPathElement generateCurveTo(Point p1,Point p2,Point p3){
        CurveToPathElement res = new CurveToPathElement();
        res.getPoints().add(p1);
        res.getPoints().add(p2);
        res.getPoints().add(p3);
        return res;
    }
}
